
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Viewing your work </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp93.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp95.htm" >Next</A>
<!-- End Header -->
<A NAME="X-REF298578397"></A><h1>Viewing your work </h1>
<A NAME="TI2550"></A><p>While building a window, you can preview it and print its
definition.</p>
<A NAME="CHDCEFHE"></A><h2>Previewing a window</h2>
<A NAME="TI2551"></A><p>As you develop a window, you can preview its appearance from
the Window painter. By previewing the window, you get a good idea
of how it will look during execution. </p>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Preview button on the PainterBar and the PowerBar</span> <A NAME="TI2552"></A>You can preview a window from the Window painter using the
Preview button on the PainterBar or by clicking the Preview button
on the PowerBar. When you use the Preview button on the PainterBar,
you do not have to save the window first, but you cannot trigger
events as described below. For information about previewing using
the PowerBar button, see <A HREF="pbugp96.htm#X-REF298578429">"Running a window"</A>.</p>
<A NAME="TI2553"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To preview a window:</p>
<ol><li class=fi><p>Click the Preview button in the PainterBar
(not the PowerBar), or select Design&gt;Preview from the menu
bar.</p><p>PowerBuilder minimizes and the window displays with the properties
you have defined, such as title bar, menu, Minimize box, and so
on.</p></li></ol>
<br><A NAME="TI2554"></A><h4>What you can do</h4>
<A NAME="TI2555"></A><p>While previewing the window, you can get a sense of its look
and feel. You can:</p>
<A NAME="TI2556"></A><p><A NAME="TI2557"></A>
<ul>
<li class=fi>Move the window</li>
<li class=ds>Resize it (if it is resizable)</li>
<li class=ds>Maximize, minimize, and restore it (if these properties
were enabled)</li>
<li class=ds>Tab from control to control</li>
<li class=ds>Select controls
</li>
</ul>
</p>
<A NAME="TI2558"></A><h4>What you cannot do</h4>
<A NAME="TI2559"></A><p>You cannot:</p>
<A NAME="TI2560"></A><p><A NAME="TI2561"></A>
<ul>
<li class=fi>Change properties
of the window<br>
Changes you make while previewing the window, such as resizing
it, are not saved.<br></li>
<li class=ds>Trigger events<br>
For example, clicking a CommandButton while previewing a window does
not trigger its Clicked event.<br></li>
<li class=ds>Connect to a database
</li>
</ul>
</p>
<A NAME="TI2562"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To return to the Window painter:</p>
<ol><li class=fi><p>Do one of the following:<A NAME="TI2563"></A>
<ul>
<li class=fi>If
the Window has a control menu, select Close from the control menu or
click the Close button in the upper right corner of the window.</li>
<li class=ds>If the window is visible, shut down the process.</li>
<li class=ds>If the window is not visible, click PowerBuilder
on the task bar and then click the Terminate button.
</li>
</ul>

                      </p></li></ol>
<br><A NAME="TI2564"></A><h2>Printing a window's definition</h2>
<A NAME="TI2565"></A><p>You can print a window's definition for documentation
purposes. </p>
<A NAME="TI2566"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To print information about the current window:</p>
<ol><li class=fi><p>Select File&gt;Print from the menu
bar.</p><p>Information about the current window is sent to the printer
specified in Printer Setup. The information sent to the printer
depends on variables specified in the [Library] section
of the PowerBuilder initialization file.</p><p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Print settings</span> <A NAME="TI2567"></A>You can view and change the print settings in the Library
painter. Select any PowerBuilder object, then select Entry&gt;Library
Item&gt;Print from the menu bar.</p>
</li></ol>
<br>
